package com.reyco1.platformengine.tile
{
	import com.reyco1.platformengine.vo.CornersData;
	
	import flash.display.Graphics;
	
	public class MovingTile extends CloudTile
	{
		public var speed:Number;
		public var dirX:Number;
		public var dirY:Number;
		public var minX:Number;
		public var minY:Number;
		public var maxX:Number;
		public var maxY:Number;
		public var tileX:Number;
		public var tileY:Number;
		
		protected var _cornerTiles:CornersData;
		
		public function MovingTile(w:Number, h:Number)
		{
			super(w, h);
		}
		
		override public function build():void
		{
			var g:Graphics = this.graphics;
			g.lineStyle(1, 0x00000);
			g.beginFill(0x334455);
			g.drawRect(-(width/2), -(height/2), width, height);
			g.endFill();
			
			walkable = true;
			isCloud = true;
		}
		
		public function move():void
		{
			
		}
		
		public function get cornerTiles():CornersData
		{
			return _cornerTiles;
		}

		public function set cornerTiles(value:CornersData):void
		{
			_cornerTiles = value;
		}
		
	}
}